package com.sixth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sixth.entity.Head;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface HeadDao extends BaseMapper<Head> {
    int deleteByPrimaryKey(Integer headId);

    int insert(Head record);

    int insertSelective(Head record);

    Head selectByPrimaryKey(Integer headId);

    int updateByPrimaryKeySelective(Head record);

    int updateByPrimaryKey(Head record);

    List<Head> selectHeadByCondition(@Param("headName") String headName,@Param("isDiable") String isDiable);

    int changeStatusByid(@Param("headId") Integer headId, @Param("isDiable") String isDiable);
}